import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { HttpProvider } from '../../providers/http/http';
import { StorageProvider } from '../../providers/storage/storage';
import { DialogProvider } from '../../providers/dialog/dialog';
/**
 * Generated class for the Cost page.
 *
 * See http://ionicframework.com/docs/components/#navigation for more info
 * on Ionic pages and navigation.
 */
@IonicPage()
@Component({
	selector: 'page-cost',
	templateUrl: 'cost.html',
})
export class CostPage {

		constructor(
		public navCtrl: NavController,
		public navParams: NavParams,
		public http: HttpProvider,
		public storage: StorageProvider,
		public dialog: DialogProvider) {
		
	}

	ionViewDidLoad() {
		console.log('ionViewDidLoad Cost');
	}
    /*待办事务*/
	opencostlist(type) {
		this.navCtrl.push("CostlistPage",{type:type});
	}
	/*申请输入页面*/
	opencostinput(type){
		this.navCtrl.push("CostinputPage",{type:type});
	}
	/*审批输入页面*/
	opencostinputext(type){
		this.navCtrl.push("CostinputextPage",{type:type});
	}
}